Skip to content

Conversation

@mschristensen
Copy link
Contributor

@mschristensen mschristensen commented Dec 17, 2025

Description

AIT DOCS INTEGRATION BRANCH

Checklist

@coderabbitai
Copy link

coderabbitai bot commented Dec 17, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mschristensen mschristensen added the review-app Create a Heroku review app label Dec 17, 2025
```
</Code>

When publishing tokens, don't await the `channel.appendMessage()` call. Ably rolls up acknowledgments and debounces them for efficiency, which means awaiting each append would unnecessarily slow down your token stream. Messages are still published in the order that `appendMessage()` is called, so delivery order is not affected.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we suggest that clients check for the success or failure of the publish?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have created a separate ticket to address this: https://ably.atlassian.net/browse/AIT-238

@matt423 matt423 force-pushed the AIT-129-AIT-Docs-release-branch branch from 400eb09 to f8056cb Compare December 23, 2025 10:41
@matt423 matt423 added review-app Create a Heroku review app and removed review-app Create a Heroku review app labels Dec 23, 2025
@ably-ci ably-ci temporarily deployed to ably-docs-ait-129-ait-d-5wu2wt December 23, 2025 10:48 Inactive

This pattern is useful when clients only care about the most recent part of a response and you are happy to treat the channel history as a short sliding window rather than a full conversation log. For example:

- **Backend-stored responses**: The backend writes complete responses to a database and clients load those full responses from there, while Ably is used only to deliver live tokens for the current in-progress response.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to promote using this pattern with backend-stored responses, because the backend storage solves the efficient hydration problem but does not solve the problem of missing tokens for the current response (assuming the response is not written to the database until it has been completely streamed, which is the pattern most existing customers are using and struggling with). It would be simpler for a customers to load history from their own database and then use message-per-response to catch up with any in-progress response

@mschristensen mschristensen mentioned this pull request Jan 5, 2026
3 tasks
@matt423 matt423 added review-app Create a Heroku review app and removed review-app Create a Heroku review app labels Jan 7, 2026
@mschristensen mschristensen force-pushed the AIT-129-AIT-Docs-release-branch branch from aebe2c1 to ea0ac8d Compare January 7, 2026 11:48
@mschristensen mschristensen added review-app Create a Heroku review app and removed review-app Create a Heroku review app labels Jan 8, 2026
@ably-ci ably-ci temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 8, 2026 14:23 Inactive
@ably-ci ably-ci had a problem deploying to ably-docs-ait-129-ait-d-usn5rq January 12, 2026 14:26 Failure
@ably-ci ably-ci temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 12, 2026 15:54 Inactive
@GregHolmes GregHolmes temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 13, 2026 12:48 Inactive
@GregHolmes GregHolmes temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 13, 2026 16:18 Inactive
@matt423 matt423 temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 13, 2026 17:16 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 14, 2026 11:28 Inactive
@matt423 matt423 temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 14, 2026 13:08 Inactive
@matt423 matt423 temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 14, 2026 15:41 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 14, 2026 17:36 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 15, 2026 10:16 Inactive
@mschristensen mschristensen force-pushed the AIT-129-AIT-Docs-release-branch branch from 7821a8f to 426203f Compare January 15, 2026 10:26
@ably-ci ably-ci temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 15, 2026 10:26 Inactive
@GregHolmes GregHolmes temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 16, 2026 12:33 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 16, 2026 14:11 Inactive
matt423 and others added 12 commits January 16, 2026 16:49
Details the message-per-response pattern using Ably `appendMessage` for Anthropic SDK.
Adds a page to the Messaging section that describes sending tool calls
and results to users over channels. Indicates ability to build
generative user interfaces or implement human in the loop workflows.
Remove /features/ path segment from AI Transport documentation URLs:
- /ai-transport/features/messaging/* → /ai-transport/messaging/*
- /ai-transport/features/token-streaming/* → /ai-transport/token-streaming/*
- /ai-transport/features/sessions-identity/* → /ai-transport/sessions-identity/*

Update navigation and internal links in guides accordingly.
Adds a token streaming rate limits page which includes description of
the new appendRollupWindow transport parameter.
For high volume token streaming uses cases, we generally advise
disabling `echoMessages` to avoid incurring additional cost from echoed
messages.
Prevent multiple agent(and Realtime) .
@mschristensen mschristensen force-pushed the AIT-129-AIT-Docs-release-branch branch from 20df5cb to 01ab0f8 Compare January 16, 2026 16:50
@ably-ci ably-ci temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 16, 2026 16:50 Inactive
Adds additional friendly guidance to the writing style guide to stop
LLMs consuming it from falling back onto bad habits.
@ably-ci ably-ci temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 16, 2026 16:59 Inactive
Add information about pricing to the overview page and include a worked example for illustration
@ably-ci ably-ci temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 16, 2026 17:04 Inactive
@mschristensen mschristensen marked this pull request as ready for review January 16, 2026 17:06
Copy link
Member

@paddybyers paddybyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ably-ci ably-ci temporarily deployed to ably-docs-ait-129-ait-d-usn5rq January 16, 2026 17:41 Inactive
@mschristensen mschristensen merged commit b5a5b08 into main Jan 16, 2026
7 checks passed
@mschristensen mschristensen deleted the AIT-129-AIT-Docs-release-branch branch January 16, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-app Create a Heroku review app

Development

Successfully merging this pull request may close these issues.